﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NorthwindEmployeesAndOrders.aspx.cs"
    Inherits="NorthwindEmployeesAndOrders.NorthwindEmployeesAndOrders" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Orders</title>
</head>
<body>
    <form id="MainForm" runat="server">
    <div>
        <asp:ToolkitScriptManager ID="ToolkitScriptManager" runat="server">
        </asp:ToolkitScriptManager>
        <asp:UpdatePanel ID="OrdersUpdatePanel" runat="server">
            <ContentTemplate>
                Employees:
                <asp:GridView ID="GridViewEmployees" runat="server"                 
                    AutoGenerateColumns="False" DataKeyNames="EmployeeID">                     
                    <Columns>
                        <asp:BoundField DataField="FirstName" HeaderText="First Name" />
                        <asp:BoundField DataField="LastName" HeaderText="Last Name" />
                    </Columns>
                </asp:GridView>
                <asp:Button ID="Button" runat="server" Text="Show Orders" 
                    onclick="Button_Click"/>
                <br />
                Orders:
                <asp:GridView ID="GridViewOrders" runat="server">
                </asp:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
